﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MaxLeaf.KH.Contract;
using MaxLeaf.KH.DALProxy;
using MaxLeaf.KH.DataContract;
using CommonsLib.Utility;

namespace MaxLeaf.KH.BLLImplementation
{
    public class BasicMtnBLL :BaseBLL, IBasicMtn
    {
        IBasicMtn _dalproxy = null;
        public virtual IBasicMtn DALProxy
        {
            get
            {
                if (_dalproxy == null)
                {
                    _dalproxy = new BasicMtnDALProxy();
                }
                return _dalproxy;
            }
        }


        public object Select(object model, int intKeyValue)
        {
             
                return DALProxy.Select(model, intKeyValue);
             
            
        }


        public List<object>  SelectDtl(object model, int intForeignKeyValue)
        {

            return DALProxy.SelectDtl(model, intForeignKeyValue);


        }

        public object Add(object model)
        {
             
                return DALProxy.Add(model);
             
            
        }

        public object Update(object model)
        {
             
                return DALProxy.Update(model);
            
            
        }

        public object Delete(object model)
        {
             
                return DALProxy.Delete(model);
             
        }
    }
}
